<template>
  <div>
    <div class="submitOrder">
        <div class="info">
            <div style="display: flex;align-items: start; width: 100%;">
                <div class="preferred-price">
                    <div class="title">优选价</div>
                    <div class="price">
                        <span style="width: 120px;">价格（元）</span>
                        <el-input v-model="price" placeholder="请输入价格" />
                        元
                    </div>
                    <div class="time">
                        <span style="width: 120px;">时限（小时）</span>
                        <el-input v-model="time" placeholder="请输入时限" />
                        小时
                    </div>
                    <div class="tip">预计1分钟内被接手，高级陪练员为您服务，胜率更高</div>
                    <!-- <img @click="showPricePicker" src="../../../assets/icons/edit.png"></img> -->
                </div>
                <div class="order-msg">
                    <div class="order-title">下单内容</div>
                    <div class="msg1">
                        <span v-if="formData.mode">{{ formData.mode }}</span>
                        <span v-if="formData.currentTask && formData.toTask && formData.mode == '段位'">{{
                            formData.currentTask[1], formData.currentTask[2] }}-{{
                                formData.toTask[1], formData.toTask[2] }}</span>
                        <span v-else-if="formData.currentTask && formData.mode == '女神陪练' | formData.mode == '场次'">{{
                            formData.currentTask[1], formData.currentTask[2] }}</span>
                        <span v-if="formData.session && formData.mode == '场次'">陪练{{ formData.session }}</span>
                        <span v-if="formData.duration && formData.mode == '女神陪练'">{{ formData.duration }}</span>
                    </div>
                    <!-- <div class="msg2">
                    <span v-if="formData.mingwenLevel && formData.heroCount">铭文{{ formData.mingwenLevel }}级 英雄数量{{
                        formData.heroCount }}个</span>
                    <span v-else-if="formData.mingwenLevel">铭文{{ formData.mingwenLevel }}级</span>
                </div> -->
                </div>
            </div>
            <div style="width: 100%;display: flex;flex-direction: column;align-items: center;justify-content: start;">
                <div class="special-task">
                    <div class="label" @click="showSpecialPicker">点击展示特殊要求</div>
                </div>
                <div class="special-task">
                    <div class="label">立即下单</div>
                </div>
            </div>

        </div>
        <!-- <div class="login-mode">
            <div class="tab">账号密码登录</div>
            <div class="username">
                <div class="label">游戏角色</div>
                <div class="handle">
                    <input type="text" placeholder="请输入您的游戏角色名">

                </div>
            </div>
            <div class="phone">
                <div class="label">号主手机（必填）</div>
                <div class="handle">
                    <input type="text" placeholder="请输入您的手机号">
                </div>
            </div>
            <div class="contact">
                <div class="label">发单者联系方式（必填）</div>
                <div class="handle">
                    <input type="text" placeholder="请输入发单者的联系方式">
                </div>
            </div>
        </div> -->
        <!-- <div class="login-mode">
            <div class="tab">陪练信息</div>
            <div class="username">
                <div class="label">游戏角色名</div>
                <div class="handle">
                    <input type="text" placeholder="请输入游戏昵称">
                </div>
            </div>
            <div class="phone">
                <div class="label">号主手机（必填）</div>
                <div class="handle">
                    <input type="text" placeholder="请输入您的手机号">
                </div>
            </div>
        </div> -->
        <!-- <div class="point-hero">
            <div class="label">指定英雄（加价30%）</div>
            <div class="handle" @click="showHeroPicker">
                <view class="selected-tag">
                    {{ hero || '请选择指定英雄' }}
                    <img src="../../../assets/icons/arrow-down.png"></img>
                </view>
            </div>
        </div> -->
        <!-- <div class="special-task">
            <div class="label">特殊要求</div>
            <div class="handle" @click="showSpecialPicker">
                <view class="selected-tag">
                    {{ '保证金/订单要求等' }}
                    <img src="../../../assets/icons/arrow-down.png"></img>
                </view>
            </div>
        </div> -->
        <!-- <div class="footer">
            <div class="button">发布订单</div>
        </div> -->
    </div>
    <!-- 优选价弹窗 -->
    <el-dialog v-model="pricePopup" width="1000" :before-close="hidePricePicker">
        <view class="popup-content">
            <view>
                <div class="level">
                    <span>价格（元）</span>
                    <input type="number" placeholder="请输入价格" v-model="price">
                </div>
                <div class="role">
                    <span>时限（小时）</span>
                    <input type="number" placeholder="请输入时限" v-model="time">
                </div>
            </view>

        </view>
        <template #footer>
            <div class="dialog-footer">
                <el-button @click="hidePricePicker">取消</el-button>
                <el-button type="primary" @click="confirmPricePicker">确定</el-button>
            </div>
        </template>
    </el-dialog>
    <!-- 指定英雄弹窗 -->
    <el-dialog v-model="heroPopup" width="1000" :before-close="hideHeroPicker">
        <view class="popup-content">
            <div scroll-y class="popup-scroll">
                <view v-for="(item, index) in heroTree" :key="index" class="popup-item" @click="selectHeroItem(item)">
                    {{ item.text }}
                </view>
            </div>
        </view>
    </el-dialog>
    <!-- 特殊要求弹窗 -->
    <el-dialog v-model="specialPopup" title="特殊要求" width="1000" :before-close="hideSpecialPicker">
        <view class="popup-content">
            <!-- <div class="server">
                <div class="server-title">
                    服务保障
                </div>
                <div class="server-content">
                    <div class="server-content-item">
                        <div class="server-content-item-text">安全保证金</div>
                        <div class="server-content-item-value">
                            <input type="number" v-model="securityDeposit">
                        </div>
                        <div class="server-content-item-unit">元</div>
                    </div>
                    <div class="server-content-item">
                        <div class="server-content-item-text">效率保证金</div>
                        <div class="server-content-item-value">
                            <input type="number" v-model="efficiencyDeposit">
                        </div>
                        <div class="server-content-item-unit">元</div>
                    </div>
                </div>
            </div> -->
            <div class="order-require">
                <div class="order-require-title">订单要求</div>
                <!-- 段位-订单要求 -->
                <div class="order-require-content" v-if="formData.mode == '段位' | formData.mode == '场次'">
                    <div class="order-require-content-item">接单者须有实力带动号主。
                    </div>
                    <div class="order-require-content-item">陪练单接单者禁止出现拉私单及引导私下交易转账行为，违者发单者可申请撤单追究赔付及处罚!!!
                    </div>
                    <div class="order-require-content-item">1.接单须5分钟内加号主好友并尽快进行陪练(号主原因除外)，接单后联系不上号主及时提交异常
                    </div>
                    <div class="order-require-content-item">
                        2.陪练前上传首图(上传好友排行榜截图，截图内需有号主昵称)，完单后上传完单截图(上传好友排行榜截图，截图内需有号主昵称)
                    </div>
                    <div class="order-require-content-item">3.陪练时间配合号主时间
                    </div>
                    <div class="order-require-content-item">4.陪练期间注意服务态度，禁止辱骂号主及队友
                    </div>
                    <div class="order-require-content-item">5.禁止陪练期间要求号主打不想玩的位置/英雄6.段位陪练订单支持以净胜场数结算
                    </div>
                    <div class="order-require-content-item">6.需自备账号
                    </div>
                </div>
                <!-- 女神陪练-订单要求 -->





                <div class="order-require-content" v-if="formData.mode == '女神陪练'">
                    <div class="order-require-content-item">女神陪练接单者需为女生玩家，需可提供语音游戏服务
                    </div>
                    <div class="order-require-content-item">1.下单后陪玩需第一时间通过订单及订单内的联系方式联系老板，预计5分钟内
                    </div>
                    <div class="order-require-content-item">2.联系后可提供试音服务，老板可以根据满意情况进行确认
                    </div>
                    <div class="order-require-content-item">3.服务游戏过程主要以游戏陪聊娱乐为主，不包上分哦
                    </div>
                    <div class="order-require-content-item">4.订单打满任务时限后即可要求结算
                    </div>
                    <div class="order-require-content-item">5.若因陪陪服务态度等问题出现纠纷，您可以保留相关凭证申请撤单退款
                    </div>
                    <div class="order-require-content-item">6.若陪练期间陪陪出现拉私单或私下交易与要求私下加款等行为，您可以随时申请退款并追究保证金处罚，官方将从严从重处理
                    </div>
                </div>


            </div>
            <div class="special-require" v-if="formData.mode != '女神陪练'">
                <div class="special-require-title">订单要求</div>
                <div class="special-require-content">
                    <el-checkbox color="#57b1ff" size="large" style="margin-right: 20px;"></el-checkbox>
                    <span>不打养猪</span>
                </div>
                <div class="special-require-content">
                    <el-checkbox color="#57b1ff" size="large" style="margin-right: 20px;"></el-checkbox>
                    <span style="display: flex;align-items: center;"><span style="width: 100px;">号主位置</span>
                        <el-input v-model="location" placeholder="请选择号主位置" /></span>

                </div>
                <div class="special-require-content" v-if="formData.mode == '段位'">
                    <el-checkbox color="#57b1ff" size="large" style="margin-right: 20px;"></el-checkbox>
                    <span>车队接</span>
                </div>
            </div>
            <view class="popup-footer" @click="hideSpecialPicker">确定
            </view>
        </view>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: 'WZsubmitOrderPL',
  props: {
    formDataInput: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    return {
      formData: { ...this.formDataInput },
      specialRequire: "",
      price: '1',
      time: '2',
      pricePopup: false,
      heroTree: [
        { text: "澜", value: "澜" }, { text: "夏洛特", value: "夏洛特" }, { text: "阿古朵", value: "阿古朵" },
        { text: "蒙恬", value: "蒙恬" }, { text: "镜", value: "镜" }, { text: "蒙犽", value: "蒙犽" },
        { text: "鲁班大师", value: "鲁班大师" }, { text: "西施", value: "西施" }, { text: "马超", value: "马超" },
        { text: "曜", value: "曜" }, { text: "云中君", value: "云中君" }, { text: "瑶", value: "瑶" },
        { text: "盘古", value: "盘古" }, { text: "猪八戒", value: "猪八戒" }, { text: "嫦娥", value: "嫦娥" },
        { text: "上官婉儿", value: "上官婉儿" }, { text: "李信", value: "李信" }, { text: "沈梦溪", value: "沈梦溪" },
        { text: "伽罗", value: "伽罗" }, { text: "盾山", value: "盾山" }, { text: "司马懿", value: "司马懿" },
        { text: "孙策", value: "孙策" }, { text: "元歌", value: "元歌" }, { text: "米莱狄", value: "米莱狄" },
        { text: "狂铁", value: "狂铁" }, { text: "弈星", value: "弈星" }, { text: "裴擒虎", value: "裴擒虎" },
        { text: "杨玉环", value: "杨玉环" }, { text: "公孙离", value: "公孙离" }, { text: "明世隐", value: "明世隐" },
        { text: "女娲", value: "女娲" }, { text: "梦奇", value: "梦奇" }, { text: "苏烈", value: "苏烈" },
        { text: "百里玄策", value: "百里玄策" }, { text: "百里守约", value: "百里守约" }, { text: "铠", value: "铠" },
        { text: "鬼谷子", value: "鬼谷子" }, { text: "干将莫邪", value: "干将莫邪" }, { text: "东皇太一", value: "东皇太一" },
        { text: "大乔", value: "大乔" }, { text: "黄忠", value: "黄忠" }, { text: "诸葛亮", value: "诸葛亮" },
        { text: "哪吒", value: "哪吒" }, { text: "太乙真人", value: "太乙真人" }, { text: "蔡文姬", value: "蔡文姬" },
        { text: "雅典娜", value: "雅典娜" }, { text: "杨戬", value: "杨戬" }, { text: "苍", value: "苍" },
        { text: "钟馗", value: "钟馗" }, { text: "虞姬", value: "虞姬" }, { text: "李元芳", value: "李元芳" },
        { text: "张飞", value: "张飞" }, { text: "刘备", value: "刘备" }, { text: "后羿", value: "后羿" },
        { text: "牛魔", value: "牛魔" }, { text: "孙悟空", value: "孙悟空" }, { text: "亚瑟", value: "亚瑟" },
        { text: "橘右京", value: "橘右京" }, { text: "娜可露露", value: "娜可露露" }, { text: "不知火舞", value: "不知火舞" },
        { text: "张良", value: "张良" }, { text: "花木兰", value: "花木兰" }, { text: "兰陵王", value: "兰陵王" },
        { text: "王昭君", value: "王昭君" }, { text: "韩信", value: "韩信" }, { text: "刘邦", value: "刘邦" },
        { text: "姜子牙", value: "姜子牙" }, { text: "露娜", value: "露娜" }, { text: "程咬金", value: "程咬金" },
        { text: "安琪拉", value: "安琪拉" }, { text: "貂蝉", value: "貂蝉" }, { text: "关羽", value: "关羽" },
        { text: "老夫子", value: "老夫子" }, { text: "武则天", value: "武则天" }, { text: "项羽", value: "项羽" },
        { text: "达摩", value: "达摩" }, { text: "狄仁杰", value: "狄仁杰" }, { text: "马可波罗", value: "马可波罗" },
        { text: "李白", value: "李白" }, { text: "宫本武藏", value: "宫本武藏" }, { text: "典韦", value: "典韦" },
        { text: "曹操", value: "曹操" }, { text: "甄姬", value: "甄姬" }, { text: "夏侯惇", value: "夏侯惇" },
        { text: "周瑜", value: "周瑜" }, { text: "吕布", value: "吕布" }, { text: "芈月", value: "芈月" },
        { text: "白起", value: "白起" }, { text: "扁鹊", value: "扁鹊" }, { text: "孙膑", value: "孙膑" },
        { text: "钟无艳", value: "钟无艳" }, { text: "阿轲", value: "阿轲" }, { text: "高渐离", value: "高渐离" },
        { text: "刘禅", value: "刘禅" }, { text: "庄周", value: "庄周" }, { text: "鲁班七号", value: "鲁班七号" },
        { text: "孙尚香", value: "孙尚香" }, { text: "嬴政", value: "嬴政" }, { text: "妲己", value: "妲己" },
        { text: "墨子", value: "墨子" }, { text: "赵云", value: "赵云" }, { text: "小乔", value: "小乔" },
        { text: "廉颇", value: "廉颇" }, { text: "艾琳", value: "艾琳" }, { text: "云缨", value: "云缨" },
        { text: "金蝉", value: "金蝉" }, { text: "司空震", value: "司空震" }, { text: "暃", value: "暃" },
        { text: "桑启", value: "桑启" }, { text: "戈娅", value: "戈娅" }, { text: "海月", value: "海月" },
        { text: "赵怀真", value: "赵怀真" }, { text: "莱西奥", value: "莱西奥" }, { text: "姬小满", value: "姬小满" },
        { text: "亚连", value: "亚连" }, { text: "朵莉亚", value: "朵莉亚" }, { text: "海诺", value: "海诺" },
        { text: "敖隐", value: "敖隐" }, { text: "大司命", value: "大司命" }, { text: "元流之子(战)", value: "元流之子(战)" },
        { text: "元流之子(法)", value: "元流之子(法)" }, { text: "少司缘", value: "少司缘" }, { text: "影", value: "影" },
        { text: "空空儿", value: "空空儿" }, { text: "元流之子（射手）", value: "元流之子（射手）" }
      ],
      hero: "",
      heroPopup: false,
      securityDeposit: 5,
      efficiencyDeposit: 5,
      specialPopup: false,
      location: ''
    };
  },
  watch: {
    formDataInput: {
      handler(newValue) {
        this.formData = { ...newValue };
        console.log("Prop formData changed:", this.formData);
      },
      deep: true,
      immediate: true
    }
  },
  methods: {
    showPricePicker() {
      this.pricePopup = true;
    },
    hidePricePicker() {
      this.pricePopup = false;
    },
    confirmPricePicker() {
      this.pricePopup = false;
    },
    showHeroPicker() {
      this.heroPopup = true;
    },
    hideHeroPicker() {
      this.heroPopup = false;
    },
    selectHeroItem(item) {
      this.hero = item.text;
      this.hideHeroPicker();
    },
    showSpecialPicker() {
      this.specialPopup = true;
    },
    hideSpecialPicker() {
      this.specialPopup = false;
    }
  },
  created() {
    // Initialization logic if needed
  }
};
</script>
<style scoped>
.submitOrder {
    width: 100%;
    height: 100vh;
    padding: 24px 32px;
    background: #fff;
    margin-top: 20px;
    /* padding: 10px; */
    /* box-sizing: border-box; */
    /* background-color: #eee; */
}

.order-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.info {
    /* padding: 20px; */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: start;
    border-radius: 16px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    flex-direction: column;
    /* background-color: #fff; */
}

.order-msg {
    width: 50%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0px 0px 10px -3px rgba(0, 0, 0, 0.5);
    padding: 20px;
    height: 200px;
    margin-left: 20px;
}

.order-msg .msg1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.order-msg .msg2 {
    font-size: 16px;
    font-weight: 400;
}

.order-msg .msg1 span,
.order-msg .msg2 span {
    margin-right: 10px;
}

.preferred-price {
    width: 50%;
    height: 200px;
    /* padding: 10px; */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    /* align-items: center; */
    /* justify-content: space-between; */
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0px 0px 10px -3px rgba(0, 0, 0, 0.5);
    /* margin-top: 20px; */
    /* position: relative; */
    /* border-bottom: 2.5px solid #57b1ff; */
}

.preferred-price .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.preferred-price .price,
.preferred-price .time {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #6041e9;
    margin-bottom: 10px;
}

.preferred-price .price .el-input,
.preferred-price .time .el-input {
    width: 50px;
    margin: 0 20px;
    font-size: 18px;
}

/* .preferred-price .price span {
    font-size: 18px;
    color: red;
    margin-right: 5px;
} */

/* .preferred-price .time {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #6041e9;
} */

.preferred-price img {
    cursor: pointer;
    /* position: absolute;
    top: 10px;
    right: 10px; */
    width: 30px;
    height: 30px;
}

.login-mode {
    border-radius: 16px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    margin-top: 5px;
    /* padding: 20px; */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.login-mode input {
    text-align: right;
    border: none;
    outline: none;
    font-size: 18px;
}

.login-mode .tab {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.login-mode .username,
.login-mode .phone,
.login-mode .contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
}

.login-mode .username .handle,
.login-mode .phone .handle,
.login-mode .contact .handle {
    font-size: 16px;
    font-weight: 400;
    color: #aaa;
}

.point-hero,
.special-task {
    width: 40%;
    border-radius: 16px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    /* margin-top: 5px; */
    /* padding: 20px; */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    margin-top: 10px;
    /* margin-left: 20px; */
}

.point-hero .label,
.special-task .label {
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    background-color: #6041e9;
    color: #fff;
    padding: 10px 20px;
    box-sizing: border-box;
    border-radius: 16px;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-task .label:hover {
    cursor: pointer;
    background-color: #3105f8;
}

.point-hero .handle,
.special-task .handle {
    font-size: 16px;
    font-weight: 400;
    color: #aaa;
}

.selected-tag {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: 25px;
    border-radius: 4px;
    font-size: 18px;
    color: #666;
}

.selected-tag img {
    width: 12px;
    height: 12px;
    margin-left: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    text-align: right;
    flex: 1;
    height: 40px;
    border-radius: 4px;
    padding: 0 10px;
    color: #666;
    border: 1px solid #ccc;
    outline: none;
    font-size: 18px;
}

.dual-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-picker {
    flex: 1;
    position: relative;
}

.tier-picker::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.arrow {
    color: #666;
    font-size: 20px;
}

.picker {
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
}

.picker::placeholder {
    color: #999;
}

/* 输入框聚焦样式 */
input:focus {
    border-color: #1ba035;
    box-shadow: 0 0 5px rgba(26, 160, 53, 0.1);
}

/* 弹窗样式 */
.popup-content {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
}

.popup-content .title {
    width: 100%;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.server,
.order-require,
.special-require {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.server-title,
.order-require-title,
.special-require-title {
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 10px;
}

.server-content,
.order-require-content {
    display: flex;
    max-height: 150px;
    overflow-y: auto;
    flex-direction: column;
    padding: 0 10px;
    box-sizing: border-box;
}

.server-content-item,
.order-require-content-item {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin-top: 10px;
    font-size: 16px;
    color: #aaa;
}

.server-content-item-text {
    width: 30%;
    font-size: 18px;
}

.server-content-item-value {
    color: #000;
    width: 50%;
}

.server-content-item-value input {
    text-align: right;
    width: 100%;
    border: none;
    outline: none;
    font-size: 18px;
}

.server-content-item-unit {
    text-align: right;
    color: #000;
    width: 20%;
    font-size: 18px;
}

.special-require-content {
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    margin-top: 10px;
    font-size: 16px;
    color: #aaa;
}

.special-require-content radio {
    margin-right: 10px;
    transform: scale(.8);
}

.level,
.role {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    font-size: 20px;
    box-sizing: border-box;
}

.level input,
.role input {
    text-align: right;
    width: 35%;
    border: none;
    outline: none;
    font-size: 18px;
}

.popup-content .top {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 10px;
}

.popup-content .body {
    min-height: 500px;
    display: flex;
}

.popup-nav {
    width: 100px;
    /* 根据需要调整宽度 */
    border-right: 1px solid #eee;
    padding: 10px 0;
}

.nav-item {
    padding: 10px;
    font-size: 14px;
    color: #666;
}

.nav-item.active {
    color: #1ba035;
    font-weight: bold;
    border-left: 2px solid #1ba035;
    padding-left: 8px;
}

.popup-scroll {
    flex: 1;
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    max-height: 500px;
}

.popup-group-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.popup-item {
    padding: 20px;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    text-align: center;
}

.popup-item:last-child {
    border-bottom: none;
}

.popup-item-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-left: 20px;
}

.popup-item-body {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding-top: 20px;
}

.popup-item-body .popup-item-body-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    padding: 20px;
    border: 1px solid #aaa;
    border-radius: 7px;
    box-sizing: border-box;
    margin-left: 20px;
    margin-top: 20px;
}

.popup-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
    color: #999;
}

.popup-scroll {
    max-height: 500px;
    overflow-y: auto;
}

.popup-group {
    margin-bottom: 10px;
}

.popup-group-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.popup-footer {
    width: 100%;
    text-align: center;
    font-size: 20px;
    border-radius: 16px;
    padding: 10px;
    color: #fff;
    background: #57b1ff;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

.popup-footer2 {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #999;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

.popup-footer2 .cancel,
.popup-footer2 .confirm {
    display: block;
    width: 50%;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
}

.popup-footer2 .cancel {
    color: #198dda;
}

.popup-footer2 .confirm {
    background-color: #198dda;
    color: #fff;
}

.footer {
    position: fixed;
    bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background-color: #57b1ff;
    transition: all .3s;
}

.footer:hover {
    cursor: pointer;
    background-color: #3e91ff;
}
</style>